#ifndef GRAY_BMP_LOAD
#define GRAY_BMP_LOAD

#include <string>
#include <fstream>

struct ImageInfo
{
  int32_t width;
  int32_t height;
  int channel;
};

class BMPfile
{
  public:
    BMPfile(const std::string& str);
    ~BMPfile();
    ImageInfo GetImageInfo();
    char* GetImageData();
  private:
    std::ifstream iFile;
    ImageInfo imgInfo;
    char* imageData=nullptr;
    int16_t imageDataOffset;
    int32_t imageSize;
};

#endif
